package cn.cloud9.designpattern.dp07decorator.decorator;

import java.math.BigDecimal;

/**
 * @projectName: Java
 * @author: 戴知舟
 * @date: 2022年05月24日 11:01
 * @version: 1.0
 */
public class PancakeDecorator extends Pancake {

    private Pancake pancake;

    public PancakeDecorator(Pancake pancake) {
        this.pancake = pancake;
    }

    @Override
    protected String getMsg() {
        return this.pancake.getMsg();
    }

    @Override
    protected BigDecimal getPrice() {
        return this.pancake.getPrice();
    }
}
